package com.aiti.lulian.mapper;

import com.aiti.base.core.base.mapper.SuperMapper;
import com.aiti.lulian.dto.EnterpriseSelectDto;
import com.aiti.lulian.entity.LuLianEnterpriseHistory;
import com.aiti.lulian.entity.LuLianEnterpriseHistoryCi;
import com.aiti.lulian.vo.EnterpriseAuthVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface LuLianEnterpriseHistoryMapper extends SuperMapper<LuLianEnterpriseHistory> {
    List<EnterpriseAuthVo> queryEnterHistoryList(Page page , @Param("enterpriseSelectDto") EnterpriseSelectDto enterpriseSelectDto);

    /***
     * 查询企业实际所在地
     * @param pkId 企业Id
     * @return 结果
     */
    LuLianEnterpriseHistoryCi selectCompanyActualAddress(@Param("pkId") String pkId);

    String getEnterpriseName(@Param("userId") String userId);

    LuLianEnterpriseHistory getEnterpriseIdAndNames(@Param("userId") String userId);

    Map<String, String> getEnterpriseIdAndName(@Param("userId") String userId);

    List<String> getEnterpriseIdByName(@Param("enterpriseName") String name);
}